package utils

import (
	"os"
	"path/filepath"
	"strings"
)

// 获取当前程序可执行文件所在目录的绝对路径
func GetExecFilePath() string {
	ex, err := os.Executable()
	if err != nil {
		panic(err)
	}
	dir := filepath.Dir(ex)

	return strings.Replace(dir, "\\", "/", -1)
}
